<div id="op_chgpass" class="easyui-window"
	style="width: 500px; height: 300px; padding: 30px 100px;"
	title="操作员密码修改"
	data-options="iconCls:'icon-lock',collapsible:true,modal:true,onClose:function (){			
			$('#maintabs').tabs('close','修改密码');
		}">
	<div style="margin-bottom: 6px">
		<input id="password0" class="easyui-textbox" type="password"
			style="width: 100%; height: 40px; padding: 12px"
			data-options="prompt:'当前密码',iconCls:'icon-lock',iconWidth:38">
	</div>
	<div style="margin-bottom: 6px">
		<input id="password1" class="easyui-textbox" type="password"
			style="width: 100%; height: 40px; padding: 12px"
			data-options="prompt:'新密码',iconCls:'icon-lock',iconWidth:38">
	</div>
	<div style="margin-bottom: 10px">
		<input id="password2" class="easyui-textbox" type="password"
			style="width: 100%; height: 40px; padding: 12px"
			data-options="prompt:'重复一边新密码',iconCls:'icon-lock',iconWidth:38">
	</div>
	<div>
		<a id="changeBtn" href="#" class="easyui-linkbutton"
			data-options="iconCls:'icon-ok'"
			style="padding: 5px 0px; width: 100%;"> <span
			style="font-size: 14px;">确定</span>
		</a>
	</div>
	<div>
		<span id="prompt_chgpass" style="color: red; display: none">提示信息</span>
	</div>
</div>
<script>
	$("#changeBtn").click(function() {
		var password0 = $("#password0").val();
		var password1 = $("#password1").val();
		var password2 = $("#password2").val();
		console.log('login btn click', password0, password1, password2);
		$.ajax({
			type : 'POST',
			url : './api/user/chgpass',
			dataType : 'json',
			data : {
				password0 : password0,
				password1 : password1,
				password2 : password2
			},
			success : function(data) {
				console.log(data);
				console.log("login return:", data.data);
				//$.messager.tips(data.msg);
				$.prompt(data.msg, 'prompt_chgpass');
				
				
			}
		});
	});
</script>